﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace TyMES.Model.BaseInformation
{
    [Table("T_BatchCompilations")]
    public class BatchCompilations : BasePoco
    {
        [Display(Name = "工厂编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string factoryCode { get; set; }
        [Display(Name = "产线编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string lineCode { get; set; }
        [Display(Name = "工位编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string stationCode { get; set; }
        [Display(Name = "所属工单")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string orderCode { get; set; }
        [Display(Name = "所属排程")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string scheduleCode { get; set; }
        [Display(Name = "物料编码")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string materialCode { get; set; }
        [Display(Name = "物料名称")]
        [StringLength(500, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string materialName { get; set; }
        [Display(Name = "批次号")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string batchCode { get; set; }
        [Display(Name = "批次料单次消耗量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string batchSingleCostQty { get; set; }
        [Display(Name = "批次料添加量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string batchAddQty { get; set; }
        [Display(Name = "批次料余量")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string batchMarginQty { get; set; }
        [Display(Name = "是否启用")]
        public bool isUse { get; set; }
        [Display(Name = "预留域1")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Filed1 { get; set; }
        [Display(Name = "预留域2")]
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Filed2 { get; set; }
    }
}
